<?php
namespace Menu\Controller;
use Think\Controller;
class JournalController extends LoginController {
	protected $DB;
	public function __construct(){
		parent::__construct();
		$this->DB = D('Journal');
	}
	public function JournalList(){
		$dataList = $this->DB->GetList();
		$this->assign('List',$dataList['list']);
		$this->assign('page',$dataList['page']);
		$this->display();
	}

	public function AddJournal(){
		$this->display();
	}

	public function Create(){
		$data = $this->DB->Create();
		if($data['number']){
			$this->success($data['info']);
		}
	}

	public function Del(){
		$Jid = I('post.Jid');
		echo $Jid;
	}	
}